import {poreClassificate} from './service';
import { message } from 'antd';

const Model ={
   namespace:'poreClassificate',
   state:{
      pictureId:1,
      userId:1,
      path:'',
   },
   effects:{
      *classificate({payload}, {put,call}) {
         const res = yield call(poreClassificate, payload)
         if (res.code === 200) {
           message.success('设置成功')
         }else{
            message.error('设置失败')
         }
       },
   },
   reducers:{
   }
}
export default Model